package OOP.polymorphic.Interface;

public class Traffic {
    public static void main(String[] args) {
        Car car = new Car();
        System.out.println("car.action = " + car.action);
        car.travel();
        System.out.println("car.action = " + car.action);
        Plane plane = new Plane();
        System.out.println("plane.action = " + plane.action);
        plane.travel();
        System.out.println("plane.action = " + plane.action);
    }
}
